<!-- modal template -->
<div class="modal-header" xmlns="http://www.w3.org/1999/html">
<h4 class="modal-title" id="myModalLabel">{{i18n.resource_add_title}}</h4>
</div>
<form   class="form-horizontal" name="resourceAddForm" novalidate="novalidate" >
<div class="modal-body">
<div class="row" style="padding:0;">
      <div class="col-md-12">
            <div class="form-group">
                   <label class="col-md-2 control-label require">{{i18n.resource_resourceName}}</label>
                  <div class="col-md-4 has-feedback">
                       <input type="text" name="resourceName" class="input-sm form-control" ng-model="resourceAdd.resourceName" ng-required="true"/>
                  </div>
                  <label class="col-md-2 control-label require">{{i18n.resource_resourceEnable}}</label>
                   <div class="col-md-4 has-feedback">
                         <label class="radio-inline">
							 <input name="resourceEnable" type="radio" value="1" ng-model="resourceAdd.resourceEnable" ng-checked="true" ng-required="true">
									    {{i18n.status_enable}}
									</label>
									<label class="radio-inline">
									  <input name="resourceEnable" type="radio" value="0" ng-model="resourceAdd.resourceEnable">
									  {{i18n.status_unable}}
								</label>
                  </div>
               </div>
          <div class="hr-line-dotted"></div>
              <div class="form-group">
                   <label class="col-md-2 control-label require">{{i18n.resource_resourceLevel}}</label>
                  <div class="col-md-4">
                       <select   class="form-control" ng-model="resourceAdd.resourceLever" ng-options="value.id as value.name for value in resourceLever" ng-required="true"/></select>
                  </div>
                  <label class="col-md-2 control-label">{{i18n.resource_resourceDesc}}</label>
                  <div class="col-md-4 has-feedback">
                       <input type="text" name="resourceDesc" class="input-sm form-control" ng-model="resourceAdd.resourceDesc" />
                  </div>
            </div>
             <div class="hr-line-dotted"></div>
              <div class="form-group">
                 <label class="col-md-2 control-label">{{i18n.resource_resourceImage}}</label>
                  <div class="col-md-4 has-feedback">
                       <input type="text" name="resourceImage" class="input-sm form-control" ng-model="resourceAdd.resourceImage" />
                  </div>                              
                  <label class="col-md-2 control-label">{{i18n.resource_resourceUrl}}</label>
                  <div class="col-md-4 has-feedback">
                       <input type="text" name="resourceUrl" class="input-sm form-control" ng-model="resourceAdd.resourceUrl" />
                  </div>
                  
            </div>
            
             <div class="hr-line-dotted"></div>
              <div class="form-group">
                 <label class="col-md-2 control-label">{{i18n.resource_resourceTitle}}</label>
                  <div class="col-md-4 has-feedback">
                       <input type="text" name="resourceTitle" class="input-sm form-control" ng-model="resourceAdd.resourceTitle" />
                  </div>
                  
                   <label class="col-md-2 control-label">{{i18n.resource_resourceNumber}}</label>
                  <div class="col-md-4 has-feedback">
                       <input type="text" name="resourceNumber" class="input-sm form-control" ng-model="resourceAdd.resourceNumber" />
                  </div>
             </div>
       </div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" ng-click="cancel()">{{i18n.btn_cancel}}</button>
<button type="submit"  ng-disabled="resourceAddForm.$invalid" class="btn btn-primary" ng-click="ok()">{{i18n.btn_ok}}</button>
</div>
</form>
